#include "EMatrix4x4.h"
#include "EVariant.h"
#include <iostream>
#include <vector>
#include <DefineCommon.h>

int main_test_EVariant(int argc, const char *argv[])//_test_EVariant
{
    ELOG_INFO("Testing EVariant--------");
    EVariant v1;
    ELOG_INFO("%s", v1.getPrintStr().data());

    v1 = 10;
    ELOG_INFO("---Test v1=10:\n%s", v1.getPrintStr().data());

    v1 = 10.05;
    ELOG_INFO("---Test v1=10.05:\n%s", v1.getPrintStr().data());

    v1 = true;
    ELOG_INFO("---Test v1=true:\n%s", v1.getPrintStr().data());

    v1 = EVec3(1,0,0);
    ELOG_INFO("---Test v1=EVec3(1,0,0):\n%s", v1.getPrintStr().data());

    v1 = EVec4(1,0,0,1);
    ELOG_INFO("---Test v1=EVec4(1,0,0,1):\n%s", v1.getPrintStr().data());

    v1 = EMatrix4x4();
    ELOG_INFO("---Test v1 = EMatrix4x4():\n%s", v1.getPrintStr().data());

    v1 = "Hello world!";
    ELOG_INFO("---Test v1 = \"Hello world!\":\n%s", v1.getPrintStr().data());

    EVariant v2;
    v2 = v1;
    ELOG_INFO("---Test v2 = v1:\nv2=%s", v2.getPrintStr().data());

    return 0;
}
